// 导入封装好的http 模块
import { Http } from '../http'

export class CityListApi {
  // 获取城市列表数据
  static getCity(params) {
    // console.log(params)
    return new Http().request({
      url: '/area/city',
      method: 'get',
      params
    })
  }

  // 获取热门城市列表数据
  static getHotCity(params) {
    // console.log(params)
    return new Http().request({
      url: '/area/hot',
      method: 'get',
      params
    })
  }

  // 获取房屋查询条件
  static getHousesCondition(params) {
    // console.log(params)
    return new Http().request({
      url: '/houses/condition',
      method: 'get',
      params
    })
  }

}

